package day4;

import java.util.Random;

public class te10 {
    public static void main(String[] args) {
        int []arr={1,2,3,4,5};
        Random r =new Random();
        int temp;
        for (int i = 0; i < arr.length; i++) {
            temp=arr[i];
            int j= r.nextInt(5);
            arr[i]=arr[j];
            arr[j]=temp;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
}
